import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router"

const routes: Array<RouteRecordRaw> = [
  { path: '/login', name: 'Login', component: () => import('../views/Login.vue') },
  { path: '/', name: 'Dashboard', component: () => import('../views/Dashboard.vue') },
  { path: '/bike', name: 'BikeManagement', component: () => import('../views/BikeManagement.vue') },
  { path: '/user', name: 'UserManagement', component: () => import('../views/UserManagement.vue') },
  { path: '/order', name: 'OrderManagement', component: () => import('../views/OrderManagement.vue') },
  { path: '/maintenance', name: 'Maintenance', component: () => import('../views/Maintenance.vue') },
  { path: '/profile', name: 'Profile', component: () => import('../views/Profile.vue') }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
